getTableArray Query failed: ERROR: syntax error at or near "itm" LINE 1: ...'/' || page || '/' || subpage) like '%/scripts/' itm[i][%' ... ^ select * from widgets where ((('/' || section || '/' || page || '/' || subpage) like '%/scripts/' itm[i][%' AND (POSITION (section IN '/scripts/' itm[i][') > 0) ) OR (('/' || section || '/' || page || '/' || subpage) like '/default/scripts/' itm[i][%')) and (("class" = 'workspace' OR "class" = 'secondary-navigation') ) order by arrangeby;